Skip to content

litespi: fix cs handling for bulk transfers#852

Closed
mczerski wants to merge 1 commit intoenjoy-digital:masterfrom
mczerski:litespi_cs_handling
Closed

litespi: fix cs handling for bulk transfers#852
mczerski wants to merge 1 commit intoenjoy-digital:masterfrom
mczerski:litespi_cs_handling

Conversation

@mczerski
Copy link
Copy Markdown

For bulk transfers it is essential to keep cs asserted for all
transfers in a block. CS register must directly drive the cs pin
for the software to be able to control the CS pin.

Linux driver related changes are in litex-hub/linux#4.

For bulk transfers it is essential to keep cs asserted for all
transfers in a block. CS register must directly drive the cs pin
for the software to be able to control the CS pin.
@mczerski mczerski force-pushed the litespi_cs_handling branch from 058e6a9 to 8bddc16 Compare March 18, 2021 11:22
@enjoy-digital
Copy link
Copy Markdown
Owner

Thanks @mczerski, I'll have a closer look at it in the next days.

@enjoy-digital
Copy link
Copy Markdown
Owner

Sorry for the delay @mczerski, unfortunately, we can't merge the change since it would break several external design that are not using bulk transfers, so we have to keep things retro-compatible.

With 8ce7c58, things are kept compatible and a new manual mode is added for CS, where CS will be a direct recopy of the CS set in the CSR:

https://github.com/enjoy-digital/litex/blob/master/litex/soc/cores/spi.py#L175

This can be used for bulk transfers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants